
kmpkg_from_gitee(
        OUT_SOURCE_PATH SOURCE_PATH
        REPO kumo-pub/kmthrift
        REF "v${VERSION}"
        SHA512 57e153f8bc36cc2037afa34ddef8cc76aa545dbccd09a134b14982ed4be47c7fd0b665155247e341682d14a9aeb770a3fe410b4c0ada027fe174389f9d722a07
        HEAD_REF master
)

kmpkg_cmake_configure(
    SOURCE_PATH "${SOURCE_PATH}"
    DISABLE_PARALLEL_CONFIGURE
    OPTIONS
        -DKMCMAKE_BUILD_TEST=OFF
)

kmpkg_cmake_install()
kmpkg_cmake_config_fixup(PACKAGE_NAME kmthrift CONFIG_PATH lib/cmake/kmthrift)

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

kmpkg_copy_pdbs()

kmpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

kmpkg_fixup_pkgconfig()
kmpkg_copy_tools(TOOL_NAMES  kmthrift AUTO_CLEAN)
